package com.ht.mt.sric.entity;

import java.io.Serializable;



import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@NamedQueries({ @NamedQuery(name = "Coordenada.findAll", query = "select o from Coordenada o") })
@Table(name = "COORDENADA")
public class Coordenada implements Serializable {
    private static final long serialVersionUID = 6546179148465886412L;
   
    @Id
    @SequenceGenerator(name = "SQ_COORDENADA", sequenceName = "SQ_COORDENADA", allocationSize = 1)
    @GeneratedValue(generator = "SQ_COORDENADA")
    @Column(name = "ID_CRDND", nullable = false)
    private Integer idCrdnd;
    @Column(name = "LNGTD_CRDND")
    private Double lngtdCrdnd;
    @Column(name = "LTTD_CRDND")
    private Double lttdCrdnd;
    @Column(name = "NMBR_FOTO", length = 20)
    private String nmbrFoto;
    @Column(name = "CDG_MT", nullable = false, length = 20)
    private String cdgMt;
    @Column(name = "DSTNC_CRDND")
    private Double dstncCrdnd;
    @ManyToOne
    @JoinColumn(name = "ID_TRM")
    private Tramo tramo;

    public Coordenada() {
    }

    public Coordenada(String cdgMt, Double dstncCrdnd, Integer idCrdnd, Tramo tramo, Double lngtdCrdnd,
                      Double lttdCrdnd, String nmbrFoto) {
        this.cdgMt = cdgMt;
        this.dstncCrdnd = dstncCrdnd;
        this.idCrdnd = idCrdnd;
        this.tramo = tramo;
        this.lngtdCrdnd = lngtdCrdnd;
        this.lttdCrdnd = lttdCrdnd;
        this.nmbrFoto = nmbrFoto;
    }

    public String getCdgMt() {
        return cdgMt;
    }

    public void setCdgMt(String cdgMt) {
        this.cdgMt = cdgMt;
    }

    public Double getDstncCrdnd() {
        return dstncCrdnd;
    }

    public void setDstncCrdnd(Double dstncCrdnd) {
        this.dstncCrdnd = dstncCrdnd;
    }

    public Integer getIdCrdnd() {
        return idCrdnd;
    }

    public void setIdCrdnd(Integer idCrdnd) {
        this.idCrdnd = idCrdnd;
    }


    public Double getLngtdCrdnd() {
        return lngtdCrdnd;
    }

    public void setLngtdCrdnd(Double lngtdCrdnd) {
        this.lngtdCrdnd = lngtdCrdnd;
    }

    public Double getLttdCrdnd() {
        return lttdCrdnd;
    }

    public void setLttdCrdnd(Double lttdCrdnd) {
        this.lttdCrdnd = lttdCrdnd;
    }

    public String getNmbrFoto() {
        return nmbrFoto;
    }

    public void setNmbrFoto(String nmbrFoto) {
        this.nmbrFoto = nmbrFoto;
    }

    public Tramo getTramo() {
        return tramo;
    }

    public void setTramo(Tramo tramo) {
        this.tramo = tramo;
    }
}
